package com.usc;
import com.usc.service.OrderService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;


@Configuration
@ComponentScan
@EnableAspectJAutoProxy

public class App
{
    public static void main( String[] args )
    {
        ApplicationContext context = new AnnotationConfigApplicationContext(App.class);
        OrderService p = (OrderService) context.getBean(OrderService.class);
        p.delete("水果");
        p.add("手机",68);
        p.findInfo("手机",666);
        // ... existing code ...
        p.delete("水果");
        p.add("手机",68);
// 打印findInfo方法的返回值
        String result = p.findInfo("手机",666);
        System.out.println(result);
        System.out.println(p);
// ... existing code ...

    }
}

